package exercise4;
import javax.swing.JOptionPane;
public class Matrix {

	public void printMatrix(int l) {
		int[][] a=new int[l][l];
		StringBuilder str=new StringBuilder();
		for(int i=0;i<a.length;i++) {
			for(int j=0;j<a.length;j++) {
				str.append("1 ");
			}
			str.append("\n");
		}
		JOptionPane.showMessageDialog(null,str.toString());
		
	}

}
